package com.fzkj.shejimoshi.adapter2.adapter;

import com.fzkj.shejimoshi.adapter2.motor.Motor;
import com.fzkj.shejimoshi.adapter2.motor.ElectricMotor;

/**
 * @DESCRIPTION: TODO 电能发动机驱动
 * @AUTHOR: AnotherOne
 * @DATE: 2021/8/13 15:39
 */
public class ElectricAdapter implements Motor {

    private ElectricMotor motor;
    public ElectricAdapter(ElectricMotor motor){
        this.motor = motor;
    }

    @Override
    public void drive() {
        motor.drive();
    }
}
